Install crictl on the host as part of CRI binaries download#113
Draft
Install crictl on the host as part of CRI binaries download#113
Conversation
Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add crictl tool for troubleshooting on host
Install crictl on the host as part of CRI binaries download
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
crictlis missing from the host, making container runtime troubleshooting difficult. This adds it to the existingdownload-cri-binariesbootstrap step alongside containerd and runc.Proto changes
crictl_versiontoDownloadCRIBinariesSpec(field 3)crictl_download_urlandcrictl_pathtoDownloadCRIBinariesStatus(fields 5–6)action.pb.goDownload logic (
components/cri/v20260301/download.go)Follows the same pattern as runc/containerd:
defaultCrictlURLTemplate—cri-toolsGitHub releases tar.gz (markedFIXMEto confirm endpoint)downloadCrictl()— extractscrictlfrom the tar; returns an error if the binary is absent in the archivecrictlVersionMatch()— idempotency check viacrictl --versionconstructCrictlDownloadURL()— arch-aware URL constructionConfig
DefaultCrictlVersion = "1.33.0"added topkg/config/defaults.go(markedFIXMEto confirm version)CrictlConfigstruct +Crictl CrictlConfigfield added toConfig, mirroringRuncConfigcfg.Crictl.Version(withDefaultCrictlVersionfallback) into the spec builderOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.